package jun.learn.thread.deadlock;

public class MyThread extends Thread {
	private DeadLockRisk dead;
	
	private int a,b;
	
	public MyThread(DeadLockRisk dead, int a, int b) {
		this.dead = dead;
		this.a = a;
		this.b = b;
	}


	@Override
	public void run() {
		dead.read();
		dead.write(a, b);
	}
}
